//
//  AddTaskController.swift
//  FastV
//
//  Created by DC on 2024/6/24.
//

import UIKit

class AddTaskController: UIViewController {

    @IBOutlet weak var topLabel: UILabel!
    @IBOutlet weak var nameField: UITextField!
    @IBOutlet weak var startField: UITextField!
    @IBOutlet weak var completionField: UITextField!
    
    @IBOutlet var segments: [UIButton]!
    
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }

    @IBAction func buttonClick(_ sender: UIButton) {
        
    }
    

    @IBAction func resetClick(_ sender: UIButton) {
        
    }
    
    @IBAction func publishClick(_ sender: UIButton) {
        
<<<<<<< HEAD
        if task.endString.isBlank {
            MBProgressHUD.showInfo("Select Completion date")
            return
        }
        task.id = Date.getCurrentSecondString()
        YYGTaskManager.shared.addTask(task: task)
        MBProgressHUD.showInfo("Create Success")
        DispatchQueue.main.asyncAfter(deadline: .now()+0.3, execute: DispatchWorkItem(block: {
            self.dismiss(animated: true)
            NotificationCenter.default.post(name: Notification.Name(Notice.kTaskChange), object: nil)
        }))
=======
>>>>>>> c1d8770387c83a01c6645dbb2f22ec7e766582c2
    }
    @IBAction func backClick(_ sender: UIButton) {
        
    dismiss(animated: true, completion: nil)
    }
    
}
